﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Danh_sach_nhan_vien.aspx.cs" Inherits="DanhMuc_Danh_sach_nhan_vien" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 168px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
    <tr>
		 <td class="cssPageTitleBG" colspan="4">
		        <asp:label id="lbl_thong_tin_chi_tiet_tv" runat="server" CssClass="cssPageTitle" Text="Tìm kiếm nhân viên"/>
		 </td>
	</tr>
    <tr>
         <td align="right" class="style2">
             <asp:label id="Label9" CssClass="cssManField" runat="server" Text="Mã nhân viên"/>
        </td>
        <td class="style1">
			    <asp:textbox id="m_txt_ma_nhan_vien" CssClass="cssTextBox"  runat="server"  
                    Width="96%" />
		</td>
         <td align="right" class="style2">
             <asp:label id="Label10" CssClass="cssManField" runat="server" Text="Giới tính"/>
        </td>
        <td><asp:RadioButtonList ID="rdl_gender_check" runat="server" 
                       
                        RepeatDirection="Horizontal" Width="167px">
                        <asp:ListItem Selected="True">All</asp:ListItem>
                        <asp:ListItem Value="Male">Nam</asp:ListItem>
                        <asp:ListItem Value="Female">Nữ</asp:ListItem>
                    </asp:RadioButtonList>
		</td>
    </tr>
    <tr>
         <td align="right" class="style2">
             <asp:label id="Label18" CssClass="cssManField" runat="server" Text="Họ và tên nhân viên"/>
        </td>
        <td class="style1">
			    <asp:textbox id="m_txt_ho_va_ten_nhan_vien" CssClass="cssTextBox"  runat="server"  
                    Width="96%" />
		</td>
         <td align="right" class="style2">
             <asp:label id="Label19" CssClass="cssManField" runat="server" Text="Tháng sinh nhật"/>
        </td>
        <td>
			    <asp:DropDownList id="m_cbo_thang_sinh_nhat" runat="server" Width="25%" 
                        CssClass="cssDorpdownlist"  >
                        <asp:ListItem Selected="True" Value="0">Tất cả</asp:ListItem>
                        <asp:ListItem Value="1">1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
		</td>
    </tr>
    <tr>
         <td align="right" class="style2">
             <asp:label id="Label11" CssClass="cssManField" runat="server" Text="Từ khóa tìm kiếm"/>
        </td>
        <td class="style1">
			    <asp:textbox id="m_txt_tu_khoa_tim_kiem" CssClass="cssTextBox"  runat="server"  
                    Width="96%" />
		</td>
         <td align="left" class="style2" colspan="2">
             (Từ khóa tìm kiếm có thể là: Mã nhân viên, tên nhân viên, email, số điện thoại của nhân viên...)</td>
    </tr>
    <tr>
            <td colspan="4" align="center">
                <asp:button id="m_cmd_tim_kiem" accessKey="v" CssClass="cssButton" 
                            runat="server" Width="100px" Text="Tìm kiếm" Height="22px" />&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
			   <asp:button id="m_cmd_xoa_trang" accessKey="x" CssClass="cssButton" 
                            runat="server" Width="100px" Text="Xóa trắng" 
                    Height="22px"/>

            </td>
        </tr>
        <tr>
            <td class="cssPageTitleBG" colspan="4">
                <asp:label id="v_lbl_nhan_loc_doi_tac" runat="server" Text="Danh sách nhân viên" CssClass="cssPageTitle"/>
            </td>
	    </tr>
    <!-- Lưới dữ liệu -->	
	<tr>
            <td colspan="4" align="left">
                <asp:label id="m_lbl_thong_bao" Visible="false" runat="server" CssClass="cssManField" />

            </td>
        </tr>
	<tr>
		<td align="center" colspan="4" valign="top">
		    <asp:GridView ID="m_grv_dm_nhan_vien" runat="server" CellPadding="4" 
                AllowPaging="True" DataKeyNames="ID"
                AutoGenerateColumns="False" Width="98%" BackColor="White" BorderColor="#3366CC" 
                BorderStyle="None" BorderWidth="1px" 
                onpageindexchanging="m_grv_dm_nhan_vien_PageIndexChanging" PageSize="20" 
                onrowupdating="m_grv_dm_nhan_vien_RowUpdating" 
                onrowdeleting="m_grv_dm_nhan_vien_RowDeleting">
                <Columns>
                      <asp:TemplateField HeaderText="Xem chi tiết">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_chi_tiet" CommandName="Update" ToolTip="Xem" CausesValidation="false"><center><img src="../Images/Button/Xembaocao.jpg" width="20px" height="20px" alt="Sửa" /></center></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                         <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_xoa" CommandName="Delete" OnClientClick="return confirm ('Các dữ liệu liên quan cũng sẽ bị xóa. Bạn có thực sự muốn xóa ?')" ToolTip="Xóa dự án này" CausesValidation="false"><center><img src="../Images/Button/deletered.png" width="20px" height="20px" alt="Xóa" /></center></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="STT">
                        <ItemTemplate><%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="MA_NHAN_VIEN" HeaderText="Mã nhân viên" />
                    <asp:BoundField DataField="HO_VA_TEN_DEM" HeaderText="Họ và tên đệm" />
                    <asp:BoundField DataField="TEN_NHAN_VIEN" HeaderText="Tên nhân viên" />
                    <asp:BoundField DataField="NGAY_SINH" HeaderText="Ngày sinh" />
                    <asp:BoundField DataField="QUE_QUAN" HeaderText="Quê quán" />
                    <asp:BoundField DataField="MOBILE_PHONE" HeaderText="Mobile Phone" />
                </Columns>

                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />

                <EditRowStyle BackColor="#7C6F57" />
                  <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                  <HeaderStyle BackColor="#810c15" Font-Bold="True" ForeColor="White" />
                  <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                  <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle CssClass="cssSelectedRow" BackColor="#C5BBAF" Font-Bold="True" 
                      ForeColor="#333333"></SelectedRowStyle>

            </asp:GridView> 
        </td>
	</tr>	
</table>
</asp:Content>

